package io.mya.modules.sys.service.impl;

import io.mya.modules.sys.dao.CandyUserDao;
import io.mya.modules.sys.entity.CandyUserEntity;
import io.mya.modules.sys.service.CandyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Service("candyUserService")
public class CandyUserServiceImpl implements CandyUserService {
    @Autowired
    private CandyUserDao candyUserDao;

    @Override
    public List<CandyUserEntity> queryList(Map<String, Object> map) {
        // TODO Auto-generated method stub
        return candyUserDao.queryList(map);
    }

    @Override
    public CandyUserEntity queryObject(Long id) {
        // TODO Auto-generated method stub
        return candyUserDao.queryObject(id);
    }

    @Override
    public void delete(Long[] id) {
        // TODO Auto-generated method stub
        candyUserDao.delete(id);
    }

    @Override
    public int saveCandyUserId(CandyUserEntity candyusercandy) {
        // TODO Auto-generated method stub
        return candyUserDao.saveCandyUserId(candyusercandy);
    }

    @Override
    public void save(CandyUserEntity candyUserEntity) {
        candyUserDao.save(candyUserEntity);
    }

    @Override
    public void update(CandyUserEntity candyusercandy) {
        // TODO Auto-generated method stub
        candyUserDao.update(candyusercandy);
    }

    @Override
    public void updateByMail(CandyUserEntity candyusercandy) {
        candyUserDao.updateByMail(candyusercandy);
    }

    @Override
    public CandyUserEntity queryCandyUser(HashMap<String,Object> map) {
        return candyUserDao.queryCandyUser(map);
    }
}
